Disambiguation of Multitouch Gesture Recognition for 3D Interaction

ABSTRACT

A multitouch device can interpret and disambiguate different gestures related to manipulating a displayed image of a 3D object, scene, or region. Examples of manipulations include pan, zoom, rotation, and tilt. The device can define a number of manipulation modes, including one or more single-control modes such as a pan mode, a zoom mode, a rotate mode, and/or a tilt mode. The manipulation modes can also include one or more multi-control modes, such as a pan/zoom/rotate mode that allows multiple parameters to be modified simultaneously.

CROSS-REFERENCES TO RELATED APPLICATIONS

This application is a continuation of U.S. application Ser. No.13/942,369, filed Jul. 15, 2013, which claims priority to U.S.Provisional Application No. 61/671,774, filed Jul. 15, 2012, which areincorporated herein by reference in their entireties.

The present application is related to the following U.S. Patents andApplications: U.S. Pat. No. 6,326,846, issued Nov. 27, 2001 (applicationSer. No. 09/236,513, filed Jan. 25, 1999); U.S. Pat. No. 7,469,381,issued Dec. 23, 2008 (application Ser. No. 11/956,969, filed Dec. 14,2007); U.S. Pat. No. 7,479,949, issued Jan. 20, 2009 (application Ser.No. 12/101,832, filed Apr. 11, 2008); and U.S. patent application Ser.No. 11/700,636, filed Jan. 31, 2007. The respective disclosures of thesepatents and applications are incorporated herein by reference in theirentirety.

BACKGROUND

The present disclosure relates generally to multitouch gesturerecognition and in particular to disambiguation of multitouch gesturerecognition for three-dimensional (3D) interaction.

Multitouch devices allow users to interact with displayed informationusing gestures that are typically made by touching a touch-sensitivesurface with one or more fingers or other contact objects such as astylus. The number of contact points and the motion of the contactpoint(s) are detected by the multitouch device and interpreted as agesture, in response to which the device can perform various actions.

SUMMARY

In accordance with certain embodiments of the present invention, amultitouch device can intelligently interpret and disambiguate differentgestures related to a displayed image of a 3D object, scene, or region.For example, when interacting with a displayed image depicting a 3Dregion (such as a map), the user may want to pan the image to see adifferent portion of the region, zoom in or out to see greater detail ora larger portion of the region, and/or rotate or tilt the image to viewthe region from different angles. At different times, the user may wantto make a single adjustment or to freely adjust multiple viewingparameters at once, e.g., zooming while panning or rotating. Themultitouch device can include a sensor to detect the user's gestures andinterpretation logic (e.g., implemented in software executing on aprogrammable processor, dedicated circuitry, or a combination thereof)to translate a detected gesture into one or more commands to modify adisplayed image.

In some embodiments, the interpretation logic can select a manipulationmode for an image based on an initial gestural motion performed by theuser, and image-manipulation commands can be generated based oninterpreting the gesture (including the initial gesture and subsequentmotion). The image manipulation commands can be executed by the deviceto manipulate the image, e.g., by changing parameters defining a viewinglocation, viewing direction and/or viewing angles for a virtual camera.For example, the manipulation modes can include one or moresingle-control modes such as a pan mode to modify a viewing location, azoom mode to modify image magnification (or to move the virtual cameracloser to or farther from the object or region being viewed), a rotationmode to orient the virtual camera in a different direction, and/or atilt mode to adjust a tilt angle associated with the virtual camera. Themanipulation modes can also include one or more multi-control modes,such as a pan/zoom/rotate mode that allows multiple parameters to bemodified simultaneously.

The following detailed description together with the accompanyingdrawings will provide a better understanding of the nature andadvantages of the present invention.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a computer system according to an embodiment of thepresent invention.

FIG. 2 illustrates a map that can be displayed on an electronic deviceaccording to an embodiment of the present invention.

FIGS. 3A and 3B illustrate a pan gesture according to an embodiment ofthe present invention.

FIGS. 4A and 4B illustrates a zoom-in gesture according to an embodimentof the present invention.

FIGS. 5A and 5B illustrate a rotate gesture according to an embodimentof the present invention.

FIGS. 6A and 6B illustrate a tilt gesture according to an embodiment ofthe present invention.

FIG. 7 is a flow diagram of a process for manipulating an image usinggestures according to an embodiment of the present invention.

FIGS. 8A and 8B illustrate a multi-control manipulation according to anembodiment of the present invention.

FIG. 9 is a flow diagram of a process for selecting a manipulation modebased on gestural input according to an embodiment of the presentinvention.

FIG. 10 is a flow diagram of another process for selecting amanipulation mode based on gestural input according to an embodiment ofthe present invention.

FIGS. 11A and 11B illustrate a multi-control manipulation according toan embodiment of the present invention.

FIGS. 12A and 12B illustrate a multi-control manipulation according toan embodiment of the present invention.

DETAILED DESCRIPTION

This application includes and incorporates the following patents andpublications as part of the Detailed Description:

Westerman et al., U.S. Pat. No. 6,326,846, issued Nov. 27, 2001;Ording, U.S. Pat. No. 7,469,381, issued Dec. 23, 2008;Jobs et al., U.S. Pat. No. 7,479,949, issued Jan. 20, 2009; andWesterman et al., U.S. Patent App. Pub. No. 2008/0036743, published Feb.14, 2008 (application Ser. No. 11/700,636, filed Jan. 31, 2007).

In accordance with certain embodiments of the present invention, amultitouch device can intelligently interpret and disambiguate differentgestures related to a displayed image of a 3D object, scene, or region.For example, when interacting with a displayed image depicting a 3Dregion (such as a map), the user may want to pan the image to see adifferent portion of the region, zoom in or out to see greater detail ora larger portion of the region, and/or rotate or tilt the image to viewthe region from different angles. At different times, the user may wantto make a single adjustment or to freely adjust multiple viewingparameters at once, e.g., zooming while panning or rotating. Themultitouch device can include a sensor to detect the user's gestures andinterpretation logic (e.g., implemented in software executing on aprogrammable processor, dedicated circuitry, or a combination thereof)to translate a detected gesture into one or more commands to modify adisplayed image.

In some embodiments, the interpretation logic can select a manipulationmode for an image based on an initial gestural motion performed by theuser, and image-manipulation commands can be generated based oninterpreting the gesture (including the initial gesture and subsequentmotion). The image manipulation commands can be executed by the deviceto manipulate the image, e.g., by changing parameters defining a viewinglocation, viewing direction and/or viewing angles for a virtual camera.For example, the manipulation modes can include one or moresingle-control modes such as a pan mode to modify a viewing location, azoom mode to modify image magnification (or to move the virtual cameracloser to or farther from the object or region being viewed), a rotationmode to orient the virtual camera in a different direction, and/or atilt mode to adjust a tilt angle associated with the virtual camera. Themanipulation modes can also include one or more multi-control modes,such as a pan/zoom/rotate mode that allows multiple parameters to bemodified simultaneously.

I. Multitouch Disambiguation System

FIG. 1 illustrates a computer system 100 according to an embodiment ofthe present invention. Computer system 100 can be implemented as any ofvarious computing devices having a variety of form factors, including,e.g., a desktop or laptop computer, tablet computer, smart phone,in-vehicle navigation system, personal data assistant (PDA), or anyother type of computing device, not limited to any particular formfactor. Computer system 100 can include processing unit(s) 105, storagesubsystem 110, input devices 120, display 125, network interface 135,and bus 140.

Processing unit(s) 105 can include a single processor, which can haveone or more cores, or multiple processors. In some embodiments,processing unit(s) 105 can include a general-purpose primary processoras well as one or more special-purpose co-processors such as graphicsprocessors, digital signal processors, or the like. In some embodiments,some or all processing units 105 can be implemented using customizedcircuits, such as application-specific integrated circuits (ASICs) orfield programmable gate arrays (FPGAs). In some embodiments, suchintegrated circuits execute instructions that are stored on the circuititself. In other embodiments, processing unit(s) 105 can executeinstructions stored in storage subsystem 110.

Storage subsystem 110 can include various memory units such as a systemmemory, a read-only memory (ROM), and a persistent storage device. A ROMcan store static data and instructions that are used by processingunit(s) 105 and other modules of electronic device 100. A persistentstorage device can be a non-volatile readable and writable memory unitthat stores instructions and data even when computer system 100 ispowered down. System memory can be implemented using volatileread-and-write memory, such as dynamic random access memory, ornon-volatile memory as desired. The system memory can store some or allof the instructions and data that are currently in use by processingunit(s) 105.

Storage subsystem 110 or units thereof can be implemented using anycombination of computer-readable storage media including semiconductormemory chips of various types (DRAM, SRAM, SDRAM, flash memory,programmable ROM) and so on. Magnetic and/or optical disks can also beused. In some embodiments, storage subsystem 110 can include removablestorage media that can be readable and/or writeable; examples of suchmedia include compact discs (CD), read-only digital versatile discs(e.g., DVD-ROM, dual-layer DVD-ROM), read-only and recordable Blue-Ray®disks, ultra density optical disks, flash memory cards (e.g., SD cards,mini-SD cards, micro-SD cards, etc.), magnetic “floppy” disks, and soon. The computer-readable storage media do not include carrier waves andtransitory electronic signals passing wirelessly or over wiredconnections.

In some embodiments, storage subsystem 110 can store one or moresoftware programs to be executed by processing unit(s) 105, such as amaps application 145. “Software” refers generally to sequences ofinstructions that, when executed by processing unit(s) 105, causecomputer system 100 to perform various operations, thus defining one ormore specific machine implementations that execute and perform theoperations of the software programs. The instructions can be stored asfirmware residing in read-only memory and/or applications stored inmagnetic storage that can be read into memory for processing by aprocessor. Software can be implemented as a single program or acollection of separate programs or program modules that interact asdesired. Programs and/or data can be stored in non-volatile storage andcopied in whole or in part to volatile working memory during programexecution. From storage subsystem 110, processing unit(s) 105 canretrieve program instructions to execute and data to process in order toexecute various operations described herein.

A user interface can be provided by one or more user input devices 120,display device 125, and/or and one or more other user output devices(not shown). Input devices 120 can include any device via which a usercan provide signals to computing system 100; computing system 100 caninterpret the signals as indicative of particular user requests orinformation. In various embodiments, input devices 120 can include anyor all of a keyboard, touch pad, touch screen, mouse or other pointingdevice, scroll wheel, click wheel, dial, button, switch, keypad,microphone, and so on. In embodiments that incorporate gesturerecognition, at least one input device 120 can provide a touch-sensitivesurface capable of detecting location and motion of multiple distinctcontact areas. Examples are described in U.S. Pat. No. 6,326,846 andU.S. Pat. No. 7,479,949; however, it is to be understood that aparticular implementation of a touch-sensitive surface is not required.

Display 125 can display images generated by electronic device 100 andcan include various image generation technologies, e.g., a cathode raytube (CRT), liquid crystal display (LCD), light-emitting diode (LED)including organic light-emitting diodes (OLED), projection system, orthe like, together with supporting electronics (e.g., digital-to-analogor analog-to-digital converters, signal processors, or the like). Someembodiments can include a device such as a touchscreen (e.g., atouch-sensitive overlay over an LCD, LED, or OLED display) thatfunctions as both touch-sensitive input device and display device. Inembodiments where the display is not touch-sensitive, a separatetouch-sensitive surface can be provided to facilitate gesture-basedinput.

In some embodiments, other user output devices can be provided inaddition to or instead of display 125. Examples include indicatorlights, speakers, tactile “display” devices, printers, and so on.

In some embodiments, the user interface can provide a graphical userinterface, in which visible image elements in certain areas of display125 are defined as active elements or control elements that the userselects using user input devices 120. For example, the user canmanipulate a user input device (e.g., a mouse or track pad) to positionan on-screen cursor or pointer over the control element, then click abutton or tap a touch-sensitive surface to indicate the selection.Alternatively, the user can touch the control element (e.g., with afinger or stylus) on a touchscreen device. In some embodiments, the usercan speak one or more words associated with the control element (theword can be, e.g., a label on the element or a function associated withthe element). In some embodiments, user gestures on a touch-sensitivedevice can be recognized and interpreted as input commands; thesegestures can be, but need not be, associated with any particular arrayin display 125. Other user interfaces can also be implemented.

Network interface 135 can provide voice and/or data communicationcapability for electronic device 100. In some embodiments, networkinterface 135 can include radio frequency (RF) transceiver componentsfor accessing wireless voice and/or data networks (e.g., using cellulartelephone technology, advanced data network technology such as 3G, 4G orEDGE, WiFi (IEEE 802.11 family standards, or other mobile communicationtechnologies, or any combination thereof), GPS receiver components,and/or other components. In some embodiments, network interface 135 canprovide wired network connectivity (e.g., Ethernet) in addition to orinstead of a wireless interface. Network interface 135 can beimplemented using a combination of hardware (e.g., antennas,modulators/demodulators, encoders/decoders, and other analog and/ordigital signal processing circuits) and software components.

Bus 140 can include various system, peripheral, and chipset buses thatcommunicatively connect the numerous internal devices of electronicdevice 100. For example, bus 140 can communicatively couple processingunit(s) 105 with storage subsystem 110. Bus 140 also connects to inputdevices 120 and display 125. Bus 140 also couples electronic device 100to a network through network interface 135. In this manner, electronicdevice 100 can be a part of a network of multiple computer systems(e.g., a local area network (LAN), a wide area network (WAN), anIntranet, or a network of networks, such as the Internet. Any or allcomponents of electronic device 100 can be used in conjunction with theinvention.

Some embodiments include electronic components, such as microprocessors,storage and memory that store computer program instructions in acomputer-readable storage medium. Many of the features described in thisspecification can be implemented as processes that are specified as aset of program instructions encoded on a computer-readable storagemedium. When these program instructions are executed by one or moreprocessing units, they cause the processing unit(s) to perform variousoperations indicated in the program instructions. Examples of programinstructions or computer code include machine code, such as is producedby a compiler, and files including higher-level code that are executedby a computer, an electronic component, or a microprocessor using aninterpreter.

Through suitable programming, processing unit(s) 105 can provide variousfunctionality for electronic device 100. For example, processing unit(s)105 can execute maps application 145. Maps application 145 can providevarious functionality such as the ability to display a map of a givenregion. The displayed region can be all or part of a “mapped” region forwhich map data is available. Map data can be stored locally, e.g., instorage subsystem 110, or stored remotely and obtained as needed, e.g.,via network interface 135. In various embodiments, the mapped region canrepresent a portion of (or all of) Earth's surface, the surface ofanother planet or celestial body, a region of space, or a fictionalregion (e.g., a region created by an artist), and, at any given time,maps application 145 may display any portion (e.g., up to all) of themapped region. The map can be rendered as a schematic model (e.g., aline drawing), as a photorealistic model (e.g., created from satellite,aerial, and/or ground-level photos or detailed artist renderings), or asa hybrid of the two (e.g., with schematic roads overlaid on aphotorealistic image).

At any given time, maps application 145 can display an image of someportion (or all) of the mapped region. For example, the displayed regioncan be selected based on the current location of the device and/or onuser input identifying a region of interest. The displayed region can bedynamically updated, e.g., based on user input and/or in response tochanges in the position (location and/or orientation) of computingsystem 100.

It will be appreciated that computer system 100 is illustrative and thatvariations and modifications are possible. Computer system 100 can haveother capabilities not specifically described here (e.g., mobile phone,global positioning system (GPS), power management, one or more cameras,various connection ports for connecting external devices or accessories,etc.). Further, while computer system 100 is described with reference toparticular blocks, it is to be understood that these blocks are definedfor convenience of description and are not intended to imply aparticular physical arrangement of component parts. Further, the blocksneed not correspond to physically distinct components. Blocks can beconfigured to perform various operations, e.g., by programming aprocessor or providing appropriate control circuitry, and various blocksmight or might not be reconfigurable depending on how the initialconfiguration is obtained. Embodiments of the present invention can berealized in a variety of apparatus including electronic devicesimplemented using any combination of circuitry and software.

FIG. 2 illustrates a map 200 that can be displayed on an electronicdevice (e.g., computer system 100 executing maps application 145)according to an embodiment of the present invention. Map 200 shows aregion sized to fit the display. In this example, map 200 can be a 3Dmap that can be viewed from different angles, not limited to directlyoverhead, and a user can perform gestures to manipulate the view. Insome embodiments, map 200 can be switched between 2D and 3D modes.

The displayed map can be manipulated by the user. In some embodiments,the map to be displayed is rendered, based on parameters defining thelocation and orientation of a virtual camera in 3D space. In response togestural input from a user, commands can be executed to modify theparameters, thereby repositioning the camera (i.e., changing locationand/or orientation), and the map can be re-rendered with the new cameraparameters. For example, the map can be panned by translating thevirtual camera in a plane parallel to a ground plane of the map,allowing different areas to be viewed. The map can be zoomed bytranslating the virtual camera along its optical axis closer to orfarther from the ground plane (or by changing a focal length ormagnification factor associated with the virtual camera without movingit), allowing the area in view to be enlarged or reduced. The map can berotated by changing the orientation of the virtual camera's optical axisand/or “up” vector. The map can be tilted by repositioning the virtualcamera to change a “tilt” angle between the optical axis and the groundplane of the map. Examples of gestures that can be used to execute suchmanipulations are described below.

In some embodiments, the displayed map can also be operative as aninterface to allow a user to access additional information. For example,the user can tap on a location (e.g., a restaurant 202 or a museum 204)marked on the map to obtain more information about that location (e.g.,an establishment's phone number, operating hours, products and servicesoffered, customer reviews and feedback, etc.). Other location-relatedinformation may also be available, such as current or predicted weatherconditions, upcoming events, turn-by-turn directions for navigating tothe location, parking availability, and the like.

Although FIG. 2 and other figures illustrate a map image, depending onimplementation, the image can be, for instance, a model of an objectgenerated by a computer-aided design (CAD) program, a rendering of animage of a scene containing real and/or computer-generated objects, orany other image of a real or virtual 3D region.

II. Single-Control Modes

Examples of gestures that can be used to manipulate a displayed map (orother image) will now be described. In these examples, a gesture isdefined based on a number of contacts and motion of the contacts on atouch-sensitive surface. In some embodiments, the number of contactsshown is treated as a minimum number and any extra contacts are ignored.

FIGS. 3A and 3B illustrate a “pan” gesture that causes the electronicdevice to shift, or translate, the visible portion of a map in auser-selected direction relative to the display area. In someembodiments, panning can be implemented by moving a virtual camera in aplane parallel to the ground plane of the map without altering theorientation of the camera.

Referring to FIG. 3A, if map 300 a is displayed on a touchscreendisplay, the user can place a contact 302 a (e.g., a finger) on thescreen and move contact 302 a in some direction, as indicated by arrow304. In response, the electronic device can translate the map in theindicated direction, as shown by map 300 b of FIG. 3B.

In some embodiments, the map is translated in coordination with thecontact motion 304 such that approximately the same location on the mapremains under the contact, as shown in FIG. 3B, where contact 302 b andmap 300 b have both shifted relative to the edges of the display area.For example, in map 300 a, an art museum is under contact 302 a, and, inmap 300 b, the same art museum remains approximately under contact 302b. Thus, the user can control the speed and direction of movement of themap, and the pan gesture can provide an experience of “dragging” themap. Dragging the map can refer to changing the portion of the map thatis displayed in a display area and/or changing the parameters thatdefine the border of the visible portion.

In some embodiments, the user can change direction. For example, theuser can place a contact 302 a (e.g., a finger) on the screen and movecontact 302 a in some direction, as indicated by arrow 304, and thenmove the contact 302 a in another direction (e.g., right, left, up,down, or diagonally). In response, the electronic device can translatethe map with the movement of the contact as the contact is being moved.Pan gestures are not limited to linear motion. In some embodiments, theuser can define curving motion paths for the map. For example, movementof contact 302 a can be a curved path (instead of the straight lineindicated by arrow 304). Movement of contact can include any combinationof linear and non-linear movement.

In some embodiments, pan can be regarded as a gesture involving linearmotion of one contact or of two or more contacts in a paralleldirection. Panning with two (or more) contacts can be distinguished fromother gestures based on various combinations of characteristics of themotion, including linearity, direction, and speed of motion. Relativelocations of the contacts can also be used to distinguish betweengestures. Examples are described below.

FIGS. 4A and 4B illustrate a “zoom-in” gesture that causes theelectronic device to enlarge the size of the rendered map. In someembodiments, zooming (in or out) can be implemented by moving thevirtual camera along its optical axis, toward the ground plane to zoomin or away from the ground plane to zoom out. In some embodiments,zooming can be implemented by changing a magnification factor or focallength associated with the virtual camera.

Referring to FIG. 4A, if map 400 a is displayed on a touchscreendisplay, the user can place two contacts 402 a and 404 a (e.g., a fingerand thumb, or two fingers) in contact with the touchscreen and movecontacts 402, 404 away from each other, as indicated by arrows 406, 408.In response, the electronic device can enlarge the map as shown in FIG.4B. This motion is sometimes referred to as an outward pinch or“depinch.” In some embodiments, a depinch (or pinch) motion can beidentified by the angle formed by arrows 406, 408. For example, ifwithin a threshold angle of zero degrees, a zoom in/out operation can beidentified.

In some embodiments, the map is enlarged in coordination with thecontact motion such that approximately the same location on the mapremains under each contact, as shown in FIG. 4B. For example, contacts402 a and 402 b are both near the same intersection on maps 400 a and400 b (e.g., near the corner of Minna Street and 3rd Street), andcontacts 404 a and 404 b are near the same location on maps 400 a and400 b (e.g., just off 3rd Street, about halfway down the block). Thatis, the contacts may have similar positions with respect to map subjectsafter movement 406, 408 causes a change in the display for map 400 a to400 b. Thus, the user can control the speed, degree, and center locationfor the zooming operation.

In some embodiments, the zoom-in is coordinated with the contact motionif the contacts move slowly; that is, a slow depinch. In someembodiments, a fast depinch gesture can cause the map to be enlarged bya predefined step size, e.g., from a current magnification factor to anext “step.” There can be any number of predefined steps, e.g., 10, 16,20 steps, etc., from a minimum magnification to a maximum magnification.Fast depinch may be used to zoom out more quickly, for example, if theuser wants to go from a very zoomed-in view (e.g., of city blocks) to avery zoomed-out view (e.g., a city view, state view, country view, orthe like).

Although not separately illustrated, a related “zoom-out” gesture canalso be defined to reduce the size of the rendered map. The zoom-outgesture can be defined as an inward pinch or “pinch,” e.g., reversingthe motions of contacts 402 and 404 of FIGS. 4A and 4B so that they movecloser together rather than farther apart. The same concepts describedabove with respect to depinching and zooming in, including fast and slowdepinches and coordination of the map enlargement to the depinch motioncontact, can be applied to an inward pinch operation for zooming out.

In some embodiments, where the zoom operation is coordinated with themotion of the contacts, zooming in and out can be performed in responseto a single gesture. A single gesture can be defined as lasting, oroccurring, from the time of an initial gesture until a gesturetermination event (e.g., lifting one or more contacts from thetouch-sensitive surface). For example, the user may begin by zoomingout, decide she has gone too far, and reverse the motion to zoom backin. In this example, two of the user's fingers (or other contacts)remain in contact with the touch-sensitive surface when zooming out andzooming back in.

In some embodiments, zoom-in and zoom-out can be regarded as a singlegesture that can be characterized by two or more contacts that moveapproximately linearly in a manner that changes (increases or decreases)the distance between them. For example, as illustrated in FIGS. 4A and4B, contacts 402 a and 404 a are separated by a first distance (410 a);after motions 406 and 408, contacts 402 b and 404 b are separated by asecond distance (410 b). In the illustrated depinch operation, the firstdistance is less than the second distance. In a pinch operation, thefirst distance can be greater than the second distance.

FIGS. 5A and 5B illustrate a “rotate” gesture that causes the electronicdevice to rotate the map relative to the display, allowing the user toview the map from different angles. In some embodiments, rotation can beimplemented as a rotation of a virtual camera about its optical axis,reorienting the camera's “up” vector. However, for users looking at a 3Dmap, this may not produce the desired effect, particularly if theoptical axis is not oriented normal to the ground plane of the map.Instead, the user may prefer to have a rotation that presents a view ofthe same area from a different direction (e.g., looking east versusnorth), rather than showing the area sideways or upside down.Accordingly, in some embodiments, the rotation operation can be definedas moving the virtual camera in a circle parallel to the ground plane ofthe map. The center of the circle is a “target point” where the opticalaxis of the virtual camera intersects the ground plane, and the radiusof the circle is determined from the current tilt angle and cameraposition. Simultaneously, with motion around the circle, the camera isreoriented to keep the optical axis aimed at the target point. In thespecial case where the optical axis is normal to the ground plane(looking straight down), the circular motion of the virtual camera canbecome a rotation about the optical axis.

Referring to FIG. 5A, if map 500 a is displayed on a touchscreendisplay, the user can place two contacts 502 a and 504 a (e.g., a fingerand thumb, or two fingers) in contact with the touchscreen and move thecontacts in an arcing manner, approximately around a common center ofthe contacts. For the user, the motion can be similar to twisting a dialwith a finger and thumb. In response, the electronic device can rotatemap 500 b as shown in FIG. 5B. In some embodiments, as the map isrotated, textual elements associated with the map, including street andlandmark identifiers, can be re-oriented such that they remainapproximately right-side-up, as can be seen by comparing FIGS. 5A and5B.

In some embodiments, the rotation is performed in coordination with themotion of contacts 502 a to 502 b and 504 a to 504 b (as indicated byarrows 506 and 508). The magnitude of the rotation can be such that afull 360-degree rotation of contacts 502 a, 504 a around the commoncenter corresponds to a full 360-degree rotation. Where this is thecase, a rotation performed with the optical axis orthogonal to the mapcan result in approximately the same location on the map remaining undercontacts 502, 504 a, as shown in FIGS. 5A and 5B. For example, contact502 a can be in approximately the same location on the map relative toother map objects as compared to contact 502 b (e.g., just off MinnaStreet, about one quarter of the way down the block), and contact 504 acan be in approximately the same location on the map relative to othermap objects as compared to contact 504 b (e.g., near the art museum).For other orientations of the optical axis, this is not necessarily thecase.

In some embodiments, the rotation is coordinated with the contact motionif the gesture is performed slowly. In some embodiments, a fast rotationgesture can cause the map to rotate through a predetermined angle (e.g.,45 degrees or 90 degrees). In some embodiments, a rotation gesture canbe distinguished from other gestures based on the rotational (as opposedto linear) component of the motion, with two contacts rotating in thesame direction around some point between them.

FIGS. 6A and 6B illustrate a “tilt” gesture that can be used to adjustthe angle relative to the ground plane at which the map is viewed; thisangle is sometimes referred to as a tilt angle or pitch. In someembodiments, a tilt-angle adjustment is implemented somewhat similarlyto rotation, except that the virtual camera moves in a circle normal tothe ground plane. The center of the circle is the target point where theoptical axis intersects the ground plane, and the plane of the circle isdefined as containing the optical axis and the normal to the groundplane. As the virtual camera moves along this vertically-orientedcircle, the camera is simultaneously reoriented so that the optical axisremains aimed at the target point. The tilt angle is defined as theangle between the ground plane and the optical axis, with zero degreescorresponding to the ground plane and 90 degrees (normal to the groundplane) corresponding to looking straight down.

Referring to FIG. 6A, map 600 a is displayed at a tilt angle of 90degrees, i.e., looking straight down at the map area from above. To tiltthe map (or change tilt angle), the user can place two contacts 602 aand 604 a (e.g., two fingers, or a finger and a thumb) side-by-sidealong the X axis of the display and move contacts 602 a, 604 a in adirection approximately orthogonal to the line joining them, asindicated by arrows 606, 608, resulting in the placement of contacts 602b and 604 b in FIG. 6B. As shown in FIG. 6B, the tilt gesture changesthe viewing angle in map 600 b so that instead of looking straight down,the map area is seen at an oblique angle.

The speed and magnitude of the tilt-angle change can be determined basedon user motions. For example, a conversion factor can be used to converta distance moved by contacts 602 a, 602 b, 604 a and 604 b to a changein tilt angle, and the change can be applied in time with the motion ofcontacts. In some embodiments, the conversion factor is selected suchthat a distance equal to 90% of the screen height corresponds to thedifference between a maximum and a minimum tilt angle allowed by themaps application; other conversion factors can be used. The distancetraveled by the contacts can be measured in two dimensions (X and Ydirections, defined as horizontal and vertical respective to a currentorientation of the display, as indicated at 620) or in just onedimension (e.g., only the Y direction, neglecting motion in the Xdirection).

In some embodiments, as shown in FIGS. 6A and 6B, moving contacts 602 a,604 a upward (toward the top of the display area) results in tilting themap toward a ground-level view (decreasing tilt angle), and movingcontacts 602 b, 604 b downward (toward the bottom of the display area)results in tiling the map toward a view from above (increasing tiltangle). A user can start a tilt gesture in one direction, and thenreverse it within a single gesture.

In some embodiments, the tilt angle is limited to a range between 90degrees and zero degrees, regardless of the user's motion. Limiting theminimum tilt angle to zero can prevent the user from looking at the mapregion from below (which can be an unrealistic or uninformativeperspective). In some embodiments, the minimum tilt angle can be largerthan zero degrees; for example, a value such as 15 degrees, 20 degrees,36 degrees or the like can be used. A limit on the maximum tilt anglecan be 90 degrees; in some embodiments, this limit is not applied. Tiltangles larger than 90 degrees, if permitted, can be rendered, e.g., as a“flying upside-down” perspective. (This may be disorienting for someusers.)

The tilt gesture can be recognized according to various criteria thatdistinguish it from other gestures involving two contacts. In someembodiments, these criteria pertain to both the relative positions andmotions of the contacts. For example, to detect a tilt gesture, the twocontacts can be required to be approximately on a line parallel to the Xaxis. Accordingly, referring to FIG. 6A, a centroid can be defined foreach contact 602, 604 (see, e.g., U.S. Pat. No. 6,326,846, U.S. Pat. No.7,479,949, and U.S. Patent App. Pub. No. 2008/0036743D for additionaldescription regarding identifying centroids for a contact), and line 610joining the centroids can be defined. As a first criterion forrecognizing a tilt gesture, line 610 can be required to be approximatelyparallel to a horizontal line (e.g., reference line 612) on the display.Various specific thresholds can be used; for example, an angle betweenlines 610 and 612 can be required to be less than a predefined maximumangle, which can be, e.g., 30 degrees, 25 degrees, 17 degrees, or someother angle. In some embodiments, a dot product of normalized vectorsrepresenting lines 610 and 612 can be calculated and a minimum thresholdapplied; e.g., dot product greater than 0.3, 0.35, 0.4, 0.5, or someother value.

In addition, or alternatively, criteria can be applied to the motion ofthe contacts. For example, to detect a tilt gesture, the motion of thetwo contacts can be required to be generally parallel to the Y axis. Asanother example, a speed criterion can be applied to the motion. In someembodiments, an assumption is made that a user will generally want tochange tilt angle slowly and in a controlled manner, a fast motion inthe Y direction can be interpreted as not indicating a tilt (it might beinterpreted as another gesture, e.g., a pan or a swipe, depending onspeed). This can be implemented, e.g., as an upper limit on the speed ofthe motion of the contacts associated with a tilt gesture.

It will be appreciated that the gestures and maps described herein areillustrative and that variations and modifications are possible. Forexample, as noted above, in some embodiments, any extra contacts (beyondthe gesture-defining number of contacts) can be ignored. In someembodiments, a user can add a new contact and remove one of the originalcontacts (e.g., switching fingers) during the course of making agesture, and the action can be treated as a continuation of the samegesture as long as at least the gesture-defining number of contacts (orat least one contact, depending on implementation) remains in contactwith the touch-sensitive surface at all times.

Other gestures can also be defined and used in addition to or instead ofthe gestures above. For example, a fast swipe may translate the map by apredetermined distance in the direction of the swipe. A tapping gestureon a particular location on the map may cause the device to obtain andpresent information pertaining to that location. Further examples ofgestures, gesture interpretation heuristics, and commands that can beassociated with gestures are described in U.S. Pat. Nos. 6,326,846;7,469,381; 7,479,949; and U.S. Patent App. Pub. No. 2008/0036743.

In some embodiments, the range of modification of the map can belimited. For example, as noted above, the tilt angle can be constrainedby maximum and minimum values. Zoom (or magnification) can also beconstrained by maximum and minimum scale factors. Panning can also belimited, e.g., if the map region has edges. (This might not be the casefor a map region encompassing the entire surface of a planet, but mightbe the case for other types of maps, such as a map of a building, acity, or a fictional region that has boundaries.) When a rangelimitation is encountered, visual feedback can be provided, e.g., via arubber-banding effect as described in U.S. Pat. No. 7,469,381.

In some embodiments, modifications of the displayed map can be animated,e.g., to correlate with the motion of a gesture. For instance, motion ofthe map across the display can appear to accelerate, decelerate, and/orchange direction based on changes in the motion. Where the modificationis applying a preset change (e.g., in response to fast zoom or fastscroll gestures as described above), acceleration and deceleration canbe applied to the modification using appropriate constants; forinstance, a coefficient of friction can be used to model accelerationand/or deceleration. Examples of frictional modeling and related visualeffects are also described in U.S. Pat. No. 7,469,381. This can make themodifications appear to the user as natural movements.

Gestures such as those described above can be used to manipulate a mapor any other image of a region in 3D space containing any number and/ortype of objects. FIG. 7 is a flow diagram of a process 700 formanipulating an image according to an embodiment of the presentinvention. Process 700 can be implemented, e.g., in computer system 100of FIG. 1 or other electronic devices.

At block 702, an image of a 3D region is displayed. Depending onimplementation, this image can be, for instance, a map (e.g., map 200 ofFIG. 2), a model of an object generated by a computer-aided design (CAD)program, a rendering of an image of a scene containing real and/orcomputer-generated objects, or any other image of a real or virtual 3Dregion. The image can be displayed in a default state based on virtualcamera parameters such as position, orientation (e.g., a rotationangle), view direction (e.g., tilt angle), and magnification factor. Thedefault state can be determined using startup parameters defined by theprogram, information received from another program (e.g., an applicationprogram that provides restaurant reviews may invoke a maps applicationto show the location of a particular restaurant, providing the locationof the restaurant), or the most recent set of parameters established bythe user (e.g., returning to the last-displayed view each time theapplication launches).

At block 704, process 700 can detect one or more contacts on atouch-sensitive surface of the device. In some embodiments, thetouch-sensitive surface can be the display. In some embodiments, othertouch-sensitive surfaces can also be used, including track pads, mice,and other user input devices.

At block 706, process 700 can detect an initial gestural motion of theone or more contacts. The initial gestural motion (also sometimesreferred to as hysteresis of the gesture) can include any motion largeenough and/or fast enough to be recognized as intentional anddisambiguated from other motions associated with other gestures;examples of gestural motions are described above and in U.S. Pat. Nos.6,326,846; 7,469,381; 7,479,949; and U.S. Patent App. Pub. No.2008/0036743.

At block 708, process 700 can select a manipulation mode based on thenumber and initial gestural motion of the contacts. Examples ofmanipulation modes are described further below and can include anycombination of the manipulations described above (e.g., pan, rotate,zoom and tilt) and/or other manipulations. In some embodiments, themanipulation mode can be determined using the process illustrated anddescribed with reference to FIG. 9.

Based on the selected manipulation mode and the initial gestural motion,process 700 can modify the displayed image at block 710. For example, ifa pan manipulation mode is selected (e.g., based on an initial gesturalmotion 304 in FIG. 3A), then a pan operation can be performed on thedisplayed image (e.g., map 300 b in FIG. 3B). Any other manipulationmodes described above and/or additional manipulation modes can beapplied and displayed at block 710.

In some embodiments, while the initial gestural motion at block 706serves to identify a gesture, the gesture itself can extend beyond theinitial gestural motion. Accordingly, at block 712, process 700 candetect additional motion associated with the gesture and further modifythe displayed image based on the motion (returning to block 710). Atblock 714, if additional motion is not detected, process 700 candetermine whether a gesture termination event has occurred. For example,a gesture termination event can be detected if all contacts are removedfrom the touch-sensitive surface and/or if all contacts come to rest forat least a threshold period of time. If a gesture termination event isnot detected, process 700 can return to block 712 to detect additionalmotion associated with the current gesture. When a gesture terminationevent occurs, process 700 can return to block 702 to detect anothercontact initiating another gesture.

Process 700 allows a user to interact with a displayed image of a 3Dregion using any combination of gestures in any sequence and withoutrequiring any additional input to indicate the user's intent. The usercan also begin a manipulation gesture, see its effect in real time, andrespond accordingly, e.g., continuing the gesture, changing speed ordirection, or ending the gesture as desired. Consequently, the user'sexperience can feel natural and intuitive.

As noted above, the electronic device can automatically distinguishamong various gestures that a user might make and select a manipulationmode, with subsequent motion being interpreted and the displayed imagemanipulated according to the selected mode until a gesture terminationevent occurs. Selection of manipulation modes will now be described.

In some embodiments, a gesture made by a user can be identified asindicating one or another of a set of distinct manipulations, e.g., anyone of the pan, zoom, rotate, or tilt manipulations described above. Inthis case, the corresponding manipulation can be selected as themanipulation mode. These are also referred to herein as single-controlmodes, indicating that modifications of only one type at a time are madeto the map view.

III. Multi-Control Modes

Some embodiments of the present invention allow a gesture to beidentified as invoking a “multi-control” mode in which modifications oftwo or more types can be made concurrently or simultaneously. An exampleof a multi-control mode is a mode that allows concurrent or simultaneousmodifications to pan (translation), zoom (magnification) and rotationwhile maintaining a constant tilt angle relative to the vertical axis ofthe map space.

FIGS. 8A and 8B illustrate a multi-control manipulation according to anembodiment of the present invention. FIG. 8A illustrates a map view 800a and contacts 802, 804 executing a multi-control gesture as indicatedby arrows 806, 808. This gesture combines elements of linear motion(associated with a pan gesture), rotational motion (associated with arotate gesture), and expanding motion (associated with a zoom gesture).Based on these elements, map 800 a can be translated, rotated and zoomedto produce a new view, e.g., map 800 b shown in FIG. 8B. In themulti-control mode, the transformations of the map can be coordinatedwith the relevant components of the motion, and the user can have theexperience of freely adjusting the map to a desired position,orientation, and magnification.

In some embodiments, a multi-control mode can include any combination oftwo or more modifications (e.g., rotate and pan, pan and zoom, rotateand tilt, etc.), and any number of distinct multi-control modes can berecognized. In some embodiments, tilt control is not included in anymulti-control mode but is only available as a single-control mode.

Any available single-control mode or multi-control mode can be selectedby the electronic device based on gestural input received via atouch-sensitive surface. The device can implement various heuristicsbased on characteristics of the gesture (e.g., the number of contactsand properties of an initial motion of the contacts such as directionand/or speed) to determine whether a particular gesture should invoke asingle-control mode or a multi-control mode as well as the specific modeto be invoked.

FIG. 9 is a flow diagram of a process 900 for selecting a manipulationmode based on gestural input according to an embodiment of the presentinvention. Process 900 can be used, e.g., to implement block 708 ofprocess 700.

At block 902, touch data received from a touch-sensitive surface isanalyzed to determine a location and velocity (speed and direction) ofeach of one or more detected contacts. Thereafter, various heuristicscan be applied to determine whether the detected motion corresponds toany of the defined gestures.

For example, at block 904, process 900 can determine whether criteriafor recognizing a tilt gesture have been satisfied. As described abovewith reference to FIGS. 6A and 6B, these criteria can include: (a)whether at least two contacts are detected; (b) whether two contacts arearranged approximately parallel to an X axis; (c) whether the contactsare moved in the Y direction; and (d) whether the contacts are moved atless than a maximum speed. If the tilt criteria are met, then at block906, process 900 can select the tilt mode, which is a single-controlmode. Referring to FIG. 7, if the tilt mode is selected at block 708,subsequent motion can be processed as a continuation of the tilt gestureuntil a termination event occurs.

Referring again to FIG. 9, at block 908, process 900 can determinewhether criteria for recognizing a pan gesture have been satisfied. Asdescribed above with reference to FIGS. 3A and 3B, these criteria caninclude: (a) whether at least one contact is detected; and (b) whether acontact moves primarily linearly. If the pan criteria are met, then atblock 910, process 900 can select the pan mode, which is anothersingle-control mode. Referring to FIG. 7, if the pan mode is selected atblock 708, subsequent motion can be processed as a continuation of thepan gesture until a termination event occurs.

Referring again to FIG. 9, at block 912, process 900 can determinewhether criteria for recognizing a zoom gesture have been satisfied. Asdescribed above with reference to FIGS. 4A and 4B, these criteria caninclude: (a) whether at least two contacts are detected; (b) whether oneor more of the contacts move toward or away from another; and (c)whether the motion is primarily linear. If the zoom criteria are met,then at block 914, process 900 can select the zoom mode, which is athird single-control mode. Referring to FIG. 7, if the zoom mode isselected at block 708, subsequent motion can be processed as acontinuation of the zoom gesture until a termination event occurs.

Referring again to FIG. 9, at block 916, process 900 can determinewhether criteria for recognizing a rotate gesture have been satisfied.As described above with reference to FIGS. 5A and 5B, these criteria caninclude: (a) whether at least two contacts are detected; (b) whether twoof the contacts move in a roughly circular pattern; and (c) whether themotion is approximately rotational around a common center. If therotation criteria are met, then at block 918, process 900 can select therotate mode, which is a fourth single-control mode. Referring to FIG. 7,if the rotate mode is selected at block 708, subsequent motion can beprocessed as a continuation of the rotate gesture until a terminationevent occurs.

Referring again to, FIG. 9, at block 920, process 900 can determinewhether criteria for recognizing a multi-control gesture have beensatisfied. As described above with reference to FIG. 8A-8B, amulti-control mode can be invoked with a gesture that combines aspectsof various single-control gestures. Thus, for example, if themulti-control mode allows pan, zoom and rotate, criteria for recognizinga multi-control gesture can include: (a) whether two or more contactsare detected; (b) whether the speed of the initial motion of one or morecontacts is below a threshold; and (c) whether the initial motioncombines attributes of at least two single-control gestures such aspan-plus-zoom, rotate-plus-zoom, or rotate-plus-pan. If themulti-control criteria are met, then at block 922, process 900 canselect the multi-control mode. Referring to FIG. 7, if the multi-controlmode is selected at block 708, subsequent motion can be processed as acombination of panning, rotation, and zooming based on the particularmotions. Multi-control mode can continue to be applied until a gesturetermination event occurs.

In some embodiments, the device may recognize gestural input to invokefunctions other than manipulating the displayed image. Accordingly,referring again to FIG. 9, at block 924, process 900 can determinewhether criteria for recognizing some other gesture (e.g., tap,double-tap, swipe, etc.) are satisfied. Examples of gesture-recognitioncriteria for a number of gestures are described in U.S. Pat. Nos.6,326,846; 7,469,381; 7,479,949; and U.S. Patent App. Pub. No.2008/0036743. If another gesture is recognized, then at block 926,process 900 can execute an action associated with the gesture, whichmight or might not include modifying the image. Referring to FIG. 7, ifa gesture is recognized at block 708 that does not relate tomanipulating the displayed image, process 700 can return to block 704after executing the appropriate action at block 924 (or exit, dependingon the action in question).

Referring again to FIG. 9, if, at block 924, no gesture was recognized,process 900 can determine to ignore the input (block 928). Referring toFIG. 7, in this case, process 700 can return to block 704 to awaitanother gesture.

It will be appreciated that processes 700 and 900 are illustrative andthat variations and modifications are possible. Steps described assequential may be executed in parallel, order of steps may be varied,and steps may be modified, combined, added or omitted. For instance,while FIG. 9 illustrates a particular order in which criteria can beapplied, it is to be understood that any order can be used. Further, thecriteria described in connection with various gestures are illustrative,and other criteria can be used. Additional description of techniques forrecognizing and interpreting gestural input is provided in U.S. Pat.Nos. 6,326,846; 7,469,381; 7,479,949; and U.S. Patent App. Pub. No.2008/0036743.

In some embodiments, gesture recognition can be based on a scoring modelrather than on satisfying specific criteria. FIG. 10 is a flow diagramof a process 1000 for selecting a manipulation mode based on gesturalinput according to an embodiment of the present invention thatimplements a scoring model. Process 1000 can be used, e.g., to implementblock 708 of process 700.

At block 1002, touch data received from a touch-sensitive surface isanalyzed to determine a location and velocity (speed and direction) ofeach of one or more detected contacts. At block 1004, a score can becalculated for each gesture in a predefined library of possiblegestures. The library can include, for example, pan, zoom, rotate andtilt gestures as described above; other gestures can also be included.The library can define a scoring function for each gesture, with thescore being a mathematical function of characteristics of the contactsand/or their initial motion. The score can be defined to reflect theprobability that a gesture having a certain set of characteristics isintended to be the particular gesture being scored. In some embodiments,a scoring function can be devised based on biomechanical constraints(e.g., range of motion of fingers), assumptions about user behavior,and/or statistical data gathered from a pool of users attempting to makevarious gestures in circumstances where the intended gesture is known. Avariety of algorithms and techniques can be used to define scores fordifferent gestures, and the library can include any number of gestures.In some embodiments, threshold-based criteria and/or context-basedcriteria can be used as a filter to reduce the number of gestures forwhich scores are calculated.

At block 1006, the scores associated with different gestures can bechecked to determine if any single gesture has a score above athreshold. The threshold can be defined as an absolute score or as adifference between the two highest scores or between the highest scoreand an average of scores, or the like. If exactly one gesture has ascore above the threshold, then at block 1008, a single-control modecorresponding to the gesture with a score above the threshold isselected. In some embodiments, block 1008 can also include executingfunctions associated with a gesture that does not relate to imagemanipulation, similarly to block 922 of process 900 described above.

At block 1010, if no gesture scored above the threshold, or ifmultiple-gestures scored above the threshold, a multi-control mode canbe selected. For example, if multiple gestures scored above thethreshold, a multi-control mode that includes all such gestures can beselected. If no gesture scored above the threshold at block 1006, then alower threshold than at block 1006 can be applied, and the selectedmulti-control mode can include the gestures that scored above the lowerthreshold. As another example, if the two (or three or four, etc.)highest scores are sufficiently close to each other, the selectedmulti-control mode can combine the manipulations associated with thegestures having the two (or three, or four, etc.) highest scores. Insome embodiments, a single multi-control mode can be defined (e.g.,including rotate, pan and zoom controls), and this mode can be selectedwhenever the scoring comparison at block 1006 does not indicate a singleunambiguous gesture. Other techniques for defining and selecting amulti-control mode can also be used.

Additional multi-control modes are illustrated in FIGS. 11A, 11B, 12A,and 12B. FIGS. 11A and 11B illustrate a multi-control manipulationaccording to an embodiment of the present invention. FIG. 11Aillustrates a map view 1100 a and contacts 1102 a, 1104 a executing amulti-control gesture as indicated by arrows 1106, 1108. This gesturecombines elements of motion (associated with a pan gesture) androtational motion (associated with a rotate gesture). The gesture mayinclude other elements of motion, but they are not described here.

For example, contact 1102 a can be moved along arrow 1106 in FIG. 11A tomove to 1102 b in FIG. 11B, while simultaneously contact 1104 a can bemoved along arrow 1108 in FIG. 11A to move to 1104 b in FIG. 11B. Basedon these elements, map 1100 a can be translated and rotated to produce anew view, e.g., map 1100 b shown in FIG. 11B. In the multi-control mode,the transformations of the map can be coordinated with the relevantcomponents of the motion, and the user can have the experience of freelyadjusting the map to a desired position, orientation, and magnification.

As illustrated in FIGS. 11A and 11B, the positioning of objects in theviewable area changed from map 1100 a to map 1100 b. For example, object1110 a is near the center of the viewable area in map 1100 a, and object1110 b is towards the top of map 1100 b. This change could be associatedwith a pan operation based on the linear movement of the contacts.Further, the orientation of the objects in the viewable areas changedfrom map 1100 a to map 1100 b. For example, orientation indicator 1115 ashows a first orientation, and orientation indicator 1115 b shows asecond orientation. The change in orientation can be a result of theangular rotation of the contacts, for example, associated with a rotateoperation.

As illustrated in FIGS. 11A and 11B, the distance between contacts 1102a and 1104 a and the distance between 1102 b and 1104 b is approximatelythe same. Therefore, in the illustration shown, there is little (or no)zooming in or zooming out, and the size of the building is approximatelythe same. A two-mode manipulation mode can occur when it is determinedthat two (and only two) manipulation modes are desired by the user.

Another example of a multi-control manipulation according to anembodiment of the present invention is shown in FIGS. 12A and 12B. FIG.12A illustrates a map view 1200 a and contacts 1202 a, 1204 a executinga multi-control gesture as indicated by arrows 1206, 1208. This gesturecombines elements of motion (associated with a pan gesture) and zoom-outmotion (associated with a zoom gesture). The gesture may include otherelements of motion, but they are not described here.

For example, contact 1202 a can be moved along arrow 1206 in FIG. 12A tomove to 1202 b in FIG. 12B, while simultaneously contact 1204 a can bemoved along arrow 1208 in FIG. 12A to move to 1204 b in FIG. 12B. Basedon these elements, map 1200 a can be translated and rotated to produce anew view, e.g., map 1200 b shown in FIG. 12B. In the multi-control mode,the transformations of the map can be coordinated with the relevantcomponents of the motion, and the user can have the experience of freelyadjusting the map to a desired position, orientation, and magnification.

As illustrated in FIGS. 12A and 12B, the positioning of objects in theviewable area changed from map 1100 a to map 1100 b. For example, theobjects associated with the Moscone Convention Center (and associatedtextual information) change positions relative to the edges of theviewable area. This change could be associated with a pan operation fromthe linear movement of the contacts. In some embodiments, as describedabove, the pan movement can be coordinated. For example, contacts 1202 aand 1202 b are approximately in the same position relative to the object(e.g., a building) which the contacts are over, and contacts 1204 a and1204 b are approximately in the same position relative to the object(e.g., another building) which the contacts are over.

Further, the scale of the objects in the viewable areas changed from map1200 a to map 1200 b. The change scale can be a result of a zoom in/outoperation. As illustrated, the distance between contacts 1102 a and 1104a is greater than the distance between 1102 b and 1104 b. Additionally,the movement of the contacts is substantially linear with respect toother of the contacts. In some embodiments, as described above, the zoommovement can be coordinated. For example, contacts 1202 a and 1202 b areapproximately in the same position relative to the object which thecontacts are over (e.g., an end of a building), and contacts 1204 a and1204 b are approximately in the same position relative to the objectwhich the contacts are over (e.g., a middle portion of the samebuilding). In the illustration shown, there is little (or no) angularrotation (e.g., as would happen if a user were simulating twisting adial); therefore, the orientation of maps 1200 a and 1200 b isapproximately the same. This orientation can be reflected by orientationindicators 1215 a and 1215 b in addition to displaying map objections atapproximately the same orientation.

It will be appreciated that the mode selection processes describedherein are illustrative and that variations and modifications arepossible. Steps described as sequential may be executed in parallel,order of steps may be varied, and steps may be modified, combined, addedor omitted. Different combinations of score-based and threshold-basedcriteria can be used to distinguish different gestures. The criteria canincorporate any information that can be detected by the touch-sensitivesurface, including but not limited to: number of contacts; location ofeach contact relative to other contacts; location of each contactrelative to the touch-sensitive surface (also referred to as “absolute”location); speed of movement of each contact; direction of movement ofeach contact (which can be defined relative to the touch-sensitivesurface and/or relative to one or more other contacts); pressureassociated with each contact; duration of each contact; time betweensuccessive contacts; etc. Gesture recognition can be based on specificcriteria applied sequentially (e.g., as a decision tree) or in parallel,on scoring models, and/or any combination thereof.

Embodiments described above provide for recognition of a variety ofgestures related to manipulating a displayed image of a 3D region. Thegestures can allow the user to change the direction from which theregion is viewed (e.g., by rotating and/or tilting), the magnificationof the image (e.g., by zooming) and/or the portion of the image that isvisible (e.g., by panning). In some embodiments, the effect ofimage-manipulation gestures can be implemented by rendering the imagefrom the point of view of a virtual camera, and the gestures can beinterpreted as changing the location and/or orientation of the virtualcamera. Operation in a single-control mode allows the user to adjust oneviewing parameter at a time, while operation in a multi-control modeallows multiple viewing parameters to be adjusted simultaneously, givingthe user flexible and intuitive control over the view. The device canautomatically determine whether to operate in a single-control mode or amulti-control mode based on characteristics of the gestures, and theuser can change modes at any time by terminating a current gesture andinitiating a new one.

As noted above, some embodiments provide one multi-control mode thatallows simultaneous control of pan, zoom and rotation while keeping thetilt angle constant. For some applications (such as maps), this can behelpful in that adjusting tilt angle can be more disorienting for theuser than adjusting other parameters. In other applications, othermulti-control modes may be desired; for example, in a CAD application, amulti-control mode may allow rotating the object (or the view) arounddifferent axes but not zooming while rotating.

While the invention has been described with respect to specificembodiments, one skilled in the art will recognize that numerousmodifications are possible. For example, while image manipulation isillustrated with reference to 3D maps, similar gestures andinterpretations can be used to manipulate any kind of image of a 3Dobject or region in a variety of applications, including but not limitedto CAD applications, computer-animation applications, video games, andso on. The particular gestures described herein can also be modified,and various embodiments can include more or fewer gestures and/ordifferent combinations of gestures than those described above. Gesturescan also be interpreted as indicating different commands; for example,one could define pitch, roll and yaw gestures for positioning a virtual(or real, depending on application) camera or other object in 3D space.

In some embodiments, gestures not related to manipulating the image orthe view of the image can also be incorporated. For instance, the usermay be able to edit an image (e.g., by adding, altering or repositioningobjects), or the user may be able to obtain additional information aboutan object in the image (e.g., information about a business establishmentshown on a map, such as hours, phone number, reviews and feedback,etc.). An example of an object is object 1110 in FIG. 11, an informationicon that can be selected for additional information. Other examples ofobjects in an image include restaurant 202 or a museum 204 in FIG. 2.

Additional information might be presented in a pop-up graphical elementassociated with the object in the image. In some embodiments, pop-upgraphical elements are presented when an object is selected. Pop-upgraphical element 1210 in FIG. 12 is an example of presenting additionalinformation. In some embodiments, pop-up graphical elements can bedisplayed in response to a user selection of an object in the image,while in other embodiments, pop-up graphical elements can be displayedin response to a search query. In some embodiments, pop-up graphicalelements can be displayed automatically based on predetermined criteria.

In some embodiments, pop-up graphical elements can appear to “hover”over the object as if “in the air” above the object when in a 3D mode.In a 2D mode, pop-up graphical elements can appear adjacent to theobject (e.g., above, below, or next to the object). In response tomanipulation gestures, the pop-up graphical element can remain inapproximately the same position relative to the object. For example, thepop-up graphical element can remain “hovering” over the object after azoom, pan, rotate, tilt or combination thereof. In some embodiments,pop-up graphical elements remain approximately the same size in responseto zoom in or zoom out operations, while the surrounding objects in theimage are resized. In some embodiments, pop-up graphical elements remainapproximately in the same position within the viewable area, while thesurrounding objects in the image are repositioned.

In some embodiments, pop-up graphical elements remain displayed on theimage as long as the object associated with the pop-up graphical elementis displayed on the screen. For example, the pop-up graphical elementmay remain displayed on the screen after a pan (or rotate, tilt, zoom)operation so long as, after the operation, the object remains in theviewable area. In some embodiments, if the object leaves the viewablearea (and/or is obstructed by another object on the display, such as a3D building object), the pop-up notification disappears. In someembodiments, when the object reenters the viewable area (e.g., as aresult of a gesture that pans the view so that the object is off thescreen and then pans back to approximately the original view), thepop-up graphical element is not redisplayed, whereas in otherembodiments, the pop-up graphical element is redisplayed.

In addition, the gesture interpretation techniques described hereinprovide the ability to disambiguate gestures, including instances wherea gesture can invoke a multi-control operating mode that combinesmultiple gestures that are also individually recognized. Such techniqueshave applicability to situations other than manipulating a 3D image, andaccordingly techniques described herein can be used in other contexts todistinguish related gestures and allow multi-control modes for any userinteraction, including interactions not related to images of 3D regionsor objects.

Gestures can be detected using any touch-sensitive surface. In someembodiments, the touch-sensitive surface can be an overlay or othercomponent of a display device, providing a touchscreen interface;however, touch-sensitive surfaces located separately from a displaydevice, such as track pads, can also be used. Contact can be made usinga finger, a stylus, or any other object detectable by the particulartouch-sensitive surface. In some embodiments, the touch-sensitivesurface may be sensitive to proximity, and a “contact” may be detectedbased on proximity to the surface without requiring actual physicalcontact.

Embodiments of the present invention can be realized using anycombination of dedicated components and/or programmable processorsand/or other programmable devices. The various processes describedherein can be implemented on the same processor or different processorsin any combination. Where components are described as being configuredto perform certain operations, such configuration can be accomplished,e.g., by designing electronic circuits to perform the operation, byprogramming programmable electronic circuits (such as microprocessors),to perform the operation, or any combination thereof. Further, while theembodiments described above may make reference to specific hardware andsoftware components, those skilled in the art will appreciate thatdifferent combinations of hardware and/or software components may alsobe used and that particular operations described as being implemented inhardware might also be implemented in software or vice versa.

Computer programs incorporating various features of the presentinvention may be encoded and stored on various computer-readable storagemedia; suitable media include magnetic disk or tape, optical storagemedia such as compact disk (CD) or DVD (digital versatile disk), flashmemory, and other non-transitory media. Computer-readable media encodedwith the program code may be packaged with a compatible electronicdevice, or the program code may be provided separately from electronicdevices (e.g., via Internet download or as a separately packagedcomputer-readable storage medium).

Thus, although the invention has been described with respect to specificembodiments, it will be appreciated that the invention is intended tocover all modifications and equivalents within the scope of thefollowing claims.

What is claimed is:
 1. A method, comprising: at an electronic devicewith a touch-sensitive surface and a display: displaying a map on thedisplay; while displaying the map on the display, detecting a touchinput on the touch-sensitive surface that includes movement of one ormore contacts on the touch-sensitive surface; and, in response todetecting the touch input: in accordance with a determination that thetouch input meets panning criteria, wherein the panning criteria includea requirement that the touch input include at least a first number ofcontacts in order for the panning criteria to be met, panning the map inaccordance with the movement of the one or more contacts; in accordancewith a determination that the touch input meets tilting criteria,wherein the tilting criteria include a requirement that the touch inputinclude at least a second number of contacts, greater than the firstnumber of contacts, in order for the tilting criteria to be met, tiltingthe map in accordance with the movement of the contacts; and, inaccordance with a determination that the touch input meets multi-controlcriteria, wherein the multi-control criteria include a requirement thatthe touch input include at least the second number of contacts in orderfor the multi-control criteria to be met, panning and zooming the map inaccordance with the movement of the contacts.
 2. The method of claim 1,wherein the tilting criteria include a requirement that at least thesecond number of contacts move in a predefined direction on thetouch-sensitive surface in order for the tilting criteria to be met. 3.The method of claim 2, wherein the tilting criteria include arequirement that at least the second number of contacts are detected inan arrangement along an axis that is different from the predefineddirection on the touch-sensitive surface in order for the tiltingcriteria to be met.
 4. The method of claim 1, wherein the multi-controlcriteria include a requirement that at least the second number ofcontacts move toward or away from each other in order for themulti-control criteria to be met.
 5. The method of claim 1, including:in accordance with a determination that the touch input meets thepanning criteria, panning the map in accordance with the movement of theone or more contacts until liftoff of the one or more contacts isdetected; in accordance with a determination that the touch input meetsthe tilting criteria, tilting the map in accordance with the movement ofthe contacts until liftoff of the contacts is detected; and, inaccordance with a determination that the touch input meets themulti-control criteria, panning and zooming the map in accordance withthe movement of the contacts until liftoff of the contacts is detected.6. The method of claim 1, wherein tilting the map is performed withoutzooming the map.
 7. The method of claim 1, wherein panning the map isperformed without tilting the map.
 8. The method of claim 1, whereinpanning and zooming the map is performed without tilting the map.
 9. Anelectronic device, comprising: a display; a touch-sensitive surface; oneor more processors; memory; and one or more programs, wherein the one ormore programs are stored in the memory and configured to be executed bythe one or more processors, the one or more programs includinginstructions for: displaying a map on the display; while displaying themap on the display, detecting a touch input on the touch-sensitivesurface that includes movement of one or more contacts on thetouch-sensitive surface; and, in response to detecting the touch input:in accordance with a determination that the touch input meets panningcriteria, wherein the panning criteria include a requirement that thetouch input include at least a first number of contacts in order for thepanning criteria to be met, panning the map in accordance with themovement of the one or more contacts; in accordance with a determinationthat the touch input meets tilting criteria, wherein the tiltingcriteria include a requirement that the touch input include at least asecond number of contacts, greater than the first number of contacts, inorder for the tilting criteria to be met, tilting the map in accordancewith the movement of the contacts; and, in accordance with adetermination that the touch input meets multi-control criteria, whereinthe multi-control criteria include a requirement that the touch inputinclude at least the second number of contacts in order for themulti-control criteria to be met, panning and zooming the map inaccordance with the movement of the contacts.
 10. The device of claim 9,wherein the tilting criteria include a requirement that at least thesecond number of contacts move in a predefined direction on thetouch-sensitive surface in order for the tilting criteria to be met. 11.The device of claim 10, wherein the tilting criteria include arequirement that at least the second number of contacts are detected inan arrangement along an axis that is different from the predefineddirection on the touch-sensitive surface in order for the tiltingcriteria to be met.
 12. The device of claim 9, wherein the multi-controlcriteria include a requirement that at least the second number ofcontacts move toward or away from each other in order for themulti-control criteria to be met.
 13. The device of claim 9, includinginstructions for: in accordance with a determination that the touchinput meets the panning criteria, panning the map in accordance with themovement of the one or more contacts until liftoff of the one or morecontacts is detected; in accordance with a determination that the touchinput meets the tilting criteria, tilting the map in accordance with themovement of the contacts until liftoff of the contacts is detected; and,in accordance with a determination that the touch input meets themulti-control criteria, panning and zooming the map in accordance withthe movement of the contacts until liftoff of the contacts is detected.14. The device of claim 9, wherein tilting the map is performed withoutzooming the map.
 15. The device of claim 9, wherein panning the map isperformed without tilting the map.
 16. The device of claim 9, whereinpanning and zooming the map is performed without tilting the map.
 17. Acomputer readable storage medium storing one or more programs, the oneor more programs comprising instructions, which when executed by anelectronic device with a display and a touch-sensitive surface, causethe electronic device to: display a map on the display; while displayingthe map on the display, detect a touch input on the touch-sensitivesurface that includes movement of one or more contacts on thetouch-sensitive surface; and, in response to detecting the touch input:in accordance with a determination that the touch input meets panningcriteria, wherein the panning criteria include a requirement that thetouch input include at least a first number of contacts in order for thepanning criteria to be met, pan the map in accordance with the movementof the one or more contacts; in accordance with a determination that thetouch input meets tilting criteria, wherein the tilting criteria includea requirement that the touch input include at least a second number ofcontacts, greater than the first number of contacts, in order for thetilting criteria to be met, tilt the map in accordance with the movementof the contacts; and, in accordance with a determination that the touchinput meets multi-control criteria, wherein the multi-control criteriainclude a requirement that the touch input include at least the secondnumber of contacts in order for the multi-control criteria to be met,pan and zoom the map in accordance with the movement of the contacts.18. The storage medium of claim 17, wherein the tilting criteria includea requirement that at least the second number of contacts move in apredefined direction on the touch-sensitive surface in order for thetilting criteria to be met.
 19. The storage medium of claim 18, whereinthe tilting criteria include a requirement that at least the secondnumber of contacts are detected in an arrangement along an axis that isdifferent from the predefined direction on the touch-sensitive surfacein order for the tilting criteria to be met.
 20. The storage medium ofclaim 17, wherein the multi-control criteria include a requirement thatat least the second number of contacts move toward or away from eachother in order for the multi-control criteria to be met.
 21. The storagemedium of claim 17, including instructions, which when executed by theelectronic device, cause the electronic device to: in accordance with adetermination that the touch input meets the panning criteria, pan themap in accordance with the movement of the one or more contacts untilliftoff of the one or more contacts is detected; in accordance with adetermination that the touch input meets the tilting criteria, tilt themap in accordance with the movement of the contacts until liftoff of thecontacts is detected; and, in accordance with a determination that thetouch input meets the multi-control criteria, pan and zoom the map inaccordance with the movement of the contacts until liftoff of thecontacts is detected.
 22. The storage medium of claim 17, whereintilting the map is performed without zooming the map.
 23. The storagemedium of claim 17, wherein panning the map is performed without tiltingthe map.
 24. The storage medium of claim 17, wherein panning and zoomingthe map is performed without tilting the map.